<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class TaxiReleaseInfo extends Model
{
    use SoftDeletes;

    public $connection = "mysql";

    public $table = "taxi_release_info";

    protected $guarded = [];

    public function storagePark()
    {
        return $this->hasOne(ParkInfo::class,'park_code','out_park_code');
    }

    public function pickUpPark()
    {
        return $this->hasOne(ParkInfo::class,'park_code','in_park_code');
    }
}
